#ifndef BASESYNCTAX_H
#define BASESYNCTAX_H

#include <QObject>
#include <QString>
#include <QDebug>
class BaseSynctaxCpp : public QObject
{
    Q_OBJECT
    Q_PROPERTY(int index READ getIndex WRITE setIndex NOTIFY indexChanged)

    Q_ENUMS(BALL_COLOR)
public:
    explicit BaseSynctaxCpp(QObject *parent = nullptr);

    Q_INVOKABLE QString baseSynctax();
    enum BALL_COLOR{
        BALL_COLOR_YELLOW,
        BALL_COLOR_RED,
        BALL_COLOR_BLUE,
        BALL_COLOR_ALL
    };

    int getIndex()const;
    int setIndex(const int index);
signals:
    void indexChanged(const int index);
public slots:
private:
    int index;
    QStringList info_list;
private:
    void PushInfo(QString info);
    void ShowInfo(QString info);

private:
    QString Test_1();
};

#endif // BASESYNCTAX_H
